<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->
                <#assign fd="FINANCE_DIRECTOR">
                    <!--面包屑导航---{-->
                    <#assign moduleName="修改客户信息">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <div class="toolbor-module search">
                                    <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/crm/queryCustomer.html?page=${page}&searchName=${searchName}'">
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form id="cust" name="form1" method="post" action="/admin/crm/modifyCustomer.html" >
                                    <div class="valBox w750">
                                        <div class="top">
                                            <strong>修改客户信息</strong>
                                        </div>
                                        <div class="val clearfix">
                                            <ul>

                                                <li>
                                                    <div class="title">姓名：</div>
                                                    <div class="v">
                                                        <#if customer??>${customer.custName!''}<#else></#if>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">手机：</div>
                                                    <div class="v">
                                                        <#if customer??>${customer.phone!''}<#else></#if>
                                                    </div>
                                                </li>

                                                <li>
                                                    <div class="title">身份证号码：</div>
                                                    <div class="v">
                                                        <#if customer??>${customer.identityNumber!''}<#else></#if>
                                                    </div>
                                                </li>


                                                <li>
                                                    <div class="title">性别：</div>
                                                    <div class="v">
                                                        <input type="radio" name="gender" value="0" <#if customer??><#if customer.gender==0> checked</#if><#else></#if>>保密
                                                        <input type="radio" name="gender" value="1" <#if customer??><#if customer.gender==1> checked</#if><#else></#if>>男
                                                        <input type="radio" name="gender" value="2" <#if customer??><#if customer.gender==2> checked</#if><#else></#if>>女

                                                    </div>
                                                </li>

                                                <!--  esales start -->
                                                <li>
                                                    <div class="title">理财方式：</div>
                                                    <div class="v">
                                                        <input type="radio" name="financialType" value="1" <#if customer??><#if customer.financialType==1> checked</#if><#else></#if>/>线上
                                                        <input type="radio" name="financialType" value="2" <#if customer??><#if customer.financialType==2> checked</#if><#else></#if>/>线下

                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">风险承受能力：</div>
                                                    <div class="v">
                                                        <input type="radio" name="riskCapacity" value="1"  <#if customer??><#if customer.riskCapacity==1> checked</#if><#else></#if> />低
                                                        <input type="radio" name="riskCapacity" value="2"  <#if customer??><#if customer.riskCapacity==2> checked</#if><#else></#if> />中
                                                        <input type="radio" name="riskCapacity" value="3"  <#if customer??><#if customer.riskCapacity==3> checked</#if><#else></#if> />高

                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">注册意愿：</div>
                                                    <div class="v">
                                                        <input type="radio" name="intention" value="1"  <#if customer??><#if customer.intention==1> checked</#if><#else></#if> />低
                                                        <input type="radio" name="intention" value="2"  <#if customer??><#if customer.intention==2> checked</#if><#else></#if> />中
                                                        <input type="radio" name="intention" value="3"  <#if customer??><#if customer.intention==3> checked</#if><#else></#if> />高

                                                    </div>
                                                </li>
                                                <!--  esales end -->
                                                <li>
                                                    <div class="title">出生日期：</div>
                                                    <div class="v">
                                                        <input type="text" name="birthday" value="<#if customer??><#if customer.birthday??>${(customer.birthday)?string('yyyy-MM-dd')}<#else></#if></#if>" style="width:250px;" onclick="change_picktime('yyyy-MM-dd')" readonly/>
                                                    </div>
                                                </li>

                                                <li>
                                                    <div class="title">客户邮箱：</div>
                                                    <div class="v">
                                                        <input type="text"  name="email" style="width:250px;" value="<#if customer??>${customer.email!''}<#else></#if>"></input>
                                                    </div>
                                                </li>

                                                <li>
                                                    <div class="title">通讯地址：</div>
                                                    <div class="v">
                                                        <textarea name="addr" style="width:450px;" ><#if customer??>${customer.addr!''}<#else></#if></textarea>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">备注</div>
                                                    <div class="v">
                                                        <textarea name="memo" style="width:450px;height: 150px" ><#if customer??>${customer.memo!''}<#else></#if></textarea>
                                                    </div>
                                                </li>
                                                <li>

                                                    <#if fd  == auth_user.userType.code>
                                                        <div class="title">变更理财经理：</div>
                                                        <div class="v">
                                                            <select name="fmId" style="min-width:124px">
                                                                <#if fdList??>
                                                                    <#list fdList as item>
                                                                        <#if item??>
                                                                            <option value="${item.userId}" <#if customer.systemUser.userId == item.userId>selected<#else></#if>>${item.realname!''}</option>
                                                                        </#if>
                                                                    </#list>
                                                                </#if>
                                                            </select>
                                                        </div>
                                                        <#else>
                                                            <input type="hidden"  name="fmId" value="<#if customer??>${customer.systemUser.userId!''}<#else></#if>"></input>
                                                    </#if>
                                                </li>


                                            </ul>
                                            <div class="other">
                                                <input type="hidden"  name="actionType" value="modify" />
                                                <input type="hidden"  name="page" value="${page}" />
                                                <input type="hidden"  name="id" value=${(id!0)?c}>
                                                <input type="hidden"  name="searchName" value="${searchName}" />
                                                <input type="submit"  name="reset" value="修改" class="input-button confirm"/>
                                            </div>
                                        </div>
                                    </div>

                                </form>

                            </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>